var service = require('./service');
var Router = require('koa-router');
var router = module.exports = new Router({
  prefix: '/cashier'
});

// 收银台
router.get('/amount', function * (next) {
  // 自行转换单位: 元|分
  var money = Number(this.query.money);
  this.body = this.render('templates/cashier.html', {
    money: money
  });
});